/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.web.gwt.form.server.provider.impl;

import com.genia.toolbox.web.gwt.form.client.form.Form;
import com.genia.toolbox.web.gwt.form.client.value.DataIdentifier;
import com.genia.toolbox.web.gwt.form.server.provider.FormProvider;

/**
 * A simple implementation of <code>FormProvider</code>.
 */
public abstract class AbstractSimpleFormProvider
    implements FormProvider
{
  /**
   * the identifier of the form handled by this object.
   */
  private String formIdentifier;

  /**
   * the form handled by this object.
   */
  private Form form;



  /**
   * getter for the form property.
   * 
   * @param dataIdentifier
   *          the data identifier
   * @return the form
   */
  public Form getForm(DataIdentifier dataIdentifier)
  {
    return form;
  }



  /**
   * setter for the form property.
   * 
   * @param form
   *          the form to set
   */
  public void setForm(Form form)
  {
    this.form = form;
  }



  /**
   * getter for the formIdentifier property.
   * 
   * @return the formIdentifier
   */
  public String getFormIdentifier()
  {
    return formIdentifier;
  }



  /**
   * setter for the formIdentifier property.
   * 
   * @param formIdentifier
   *          the formIdentifier to set
   */
  public void setFormIdentifier(String formIdentifier)
  {
    this.formIdentifier = formIdentifier;
  }

}
